<?php
	require('config.php');
	
	$id   = intval($_GET['id']);
	$flag = intval($_GET['flag']);
	$back = $_GET['back'];
		
	if (isset($services[--$id])) {
		if ($flag == 1) {
			$result = win32_create_service($services[$id]);
		} else {
			$result = win32_delete_service($services[$id]['service']);
		}
	}	
	
	header('location: ' . $back);
	// End of file